//
// Created by Mr.Optimist on 2022/2/12.
//

#pragma once
#include "Renderer.hpp"

class Texture{
private:
    unsigned int m_RendererID;
    std::string m_FilePath;
    unsigned char* m_LocalBuffer;
    int m_Width, m_Height, m_BitPerPixel;
public:
    Texture(const std::string& path);
    ~Texture();

    void Bind(unsigned int slot = 0) const;
    void UnBind() const;

    inline int GetWidth() const {return m_Width; }
    inline int GetHeight() const {return m_Height; }
};
